package com.ruoyi.energy.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 能耗总览查询条件
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OverviewQuery {

    @ApiModelProperty(name = "startDateTime", value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startDateTime;

    @ApiModelProperty(name = "endDateTime", value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endDateTime;

    @ApiModelProperty(name = "startStatisticTime", value = "统计时间的开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startStatisticTime;
    @ApiModelProperty(name = "endStatisticTime", value = "统计时间的结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endStatisticTime;

    private String assetCode;

    private String locationIden;

    private Integer level;

    //能耗类型
    private Integer type;

    //central_control 中控数据 , MOM   MOM数据
    private String typeOverviewQuality;

    private String carType;
}
